<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>💗 Love you 💗</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: #000;
            overflow: hidden;
            width: 100vw;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        canvas {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation: heartbeat 1.5s ease-in-out infinite;
        }

        @keyframes heartbeat {
            0% {
                transform: translate(-50%, -50%) scale(0.8);
            }
            25% {
                transform: translate(-50%, -50%) scale(0.7);
            }
            50% {
                transform: translate(-50%, -50%) scale(1);
            }
            75% {
                transform: translate(-50%, -50%) scale(0.7);
            }
            100% {
                transform: translate(-50%, -50%) scale(0.8);
            }
        }

        .title {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: #ff69b4;
            font-family: Arial, sans-serif;
            font-size: 24px;
            text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
            z-index: 10;
        }
    </style>
</head>
<body>
    <div class="title">💗 Love you 💗</div>
    <canvas id="heartCanvas"></canvas>

    <script>
        const canvas = document.getElementById('heartCanvas');
        const ctx = canvas.getContext('2d');
        
        // 设置canvas尺寸
        function resizeCanvas() {
            canvas.width = Math.min(window.innerWidth * 0.8, 400);
            canvas.height = Math.min(window.innerHeight * 0.8, 400);
            drawHeart();
        }

        // 绘制心形
        function drawHeart() {
            const centerX = canvas.width / 2;
            const centerY = canvas.height / 2;
            const size = Math.min(canvas.width, canvas.height) * 0.4;
            
            ctx.clearRect(0, 0, canvas.width, canvas.height);
            
            // 创建渐变
            const gradient = ctx.createRadialGradient(centerX, centerY, 0, centerX, centerY, size);
            gradient.addColorStop(0, '#ff69b4');
            gradient.addColorStop(0.7, '#ff1493');
            gradient.addColorStop(1, '#dc143c');
            
            ctx.fillStyle = gradient;
            ctx.shadowColor = '#ff69b4';
            ctx.shadowBlur = 20;
            
            // 绘制心形路径
            ctx.beginPath();
            ctx.moveTo(centerX, centerY + size * 0.3);
            
            // 左半边心形
            ctx.bezierCurveTo(
                centerX - size * 0.5, centerY - size * 0.4,
                centerX - size * 1.2, centerY - size * 0.1,
                centerX, centerY + size * 0.8
            );
            
            // 右半边心形
            ctx.bezierCurveTo(
                centerX + size * 1.2, centerY - size * 0.1,
                centerX + size * 0.5, centerY - size * 0.4,
                centerX, centerY + size * 0.3
            );
            
            ctx.closePath();
            ctx.fill();
        }

        // 初始化
        resizeCanvas();
        window.addEventListener('resize', resizeCanvas);
    </script>
</body>
</html>
</